package com.ezjie.ielts.task;

import java.util.HashMap;
import java.util.Map;

import com.ezjie.ielts.core.http.HttpAPI;
import com.ezjie.ielts.core.http.HttpRequestCallBack;
import com.ezjie.ielts.core.http.ServerInterfaceDefinition;

import android.content.Context;

public class FeedbackTask {

	private Context context;

	public FeedbackTask(Context context) {
		this.context = context;
	}
	/**
	 * 意见反馈
	 * @param content 反馈内容
	 * @param contact 联系方式
	 * @param httpRequestCallBack
	 */
	public void doFeedback(String content,String contact,HttpRequestCallBack httpRequestCallBack){
		Map<String, String> params = new HashMap<String, String>();
		params.put("content", content);
		params.put("contact", contact);
		
		HttpAPI.getInstance(context).doPostRequest(
				ServerInterfaceDefinition.OPT_FEEDBACK, params,
				httpRequestCallBack);
	}
}
